import { defineStore } from 'pinia'


export const useUserStore = defineStore('userStore', {
  state: () => {
    return {
      name: '小龙人',
      userInfo: {
        Name: "",
        Id: 1,
        Token: "",
      },
    };
  },
  getters: {
    // userInfoRights: (state) => state.userInfo.EmpInfo.Rights,
    // double: (state) => state.count * 2,
  },
  actions: {
    // saveInfo(info: IloginRef) {
    //   this.userInfo = info;
    // },
  },
})